import { useState } from "react";
const useDialog = () => {
  const [open, setOpen] = useState(false);
  const handleCloseDialog = () => {
    setOpen(false);
  };
  const handleOpenDialog = () => {
    setOpen(true);
  };

  return { open, handleCloseDialog, handleOpenDialog };
};

export default useDialog;
